A Programs for ReachabilityA
نویسندگان
چکیده
while (1) { with (s1) /* send r to 2d shape */ where (s1mask) pcoord(0)]]0]conn = r; with (s2) where (s2mask) { conn = copy_spread(&conn;, 1, 0); /* spread */ conn &= e; /* combine */ reduce(&conn;, conn, 0, /* reduce */ CMC_combiner_logior, 0); where (pcoord(0)==0) pcoord(1)]temp = conn; /* return result */ } with (s1) { /* stop if r hasn't changed */ if (&=(temp==r)) break; r = temp; } } CM_timer_stop(1); CM_timer_print(1); } 25 C r contains the nodes that node 1 is connected to r(1:n) = e(1,1:n) call CM_timer_clear(1) call CM_timer_start(1) do while (.TRUE.) temp = any(spread(r, DIM = 2, NCOPIES = n) .and. e, $ DIM = 1) if (all(temp .eqv. r)) then goto 100 end if r = temp end do 100 continue call CM_timer_stop(1) call CM_timer_print(1) end A.3 Reachability in C #include #include #include #define N 512 #define N_PROCS 8192 int main(int argc,char *argvv]) { shape N_PROCS]s1; /* shapes must have more than 512 elements */ shape N]]N]s2; /* 512*512 > N_PROCS, so no padding needed */ int:s2 e, conn, s2mask; int:s1 r, temp, s1mask; /* initialize e so each node is connected to next higher node */ with (s2) { e = 0; pcoord(0)]]pcoord(0)]e = 1; where (pcoord(0) < (N-1)) pcoord(0)]]pcoord(0)+1]e = 1; } /* these masks prevent collisions in sends */ with (s1) s1mask = (pcoord(0)<N); with (s2) s2mask = (pcoord(0)<N && pcoord(1)<N); /* rri] is true if node 0 is connected to node i */ with (s2) where (s2mask & pcoord(0)==0) pcoord(1)]r = e;
منابع مشابه
A tree transformation facility using typed rewrite systems
Tree rewrite systems with typed variables can be used to represent many tree transformations in a more compact form than systems with untyped variables. By building on the work of Eduardo PelegrfLlopart, it is possible to generate linear-time optimal solutions to SET-REACHABILITYa generalization of REACHABILITY with a possibly infinite goal set for a useful class of typed rewrite systems. The a...
متن کاملAccuracy and characteristics of cephalometric software programs for outcome prediction of orthognathic treatments: A review
Several software programs have been designed for outcome prediction of orthodontic and surgical treatments. This study aimed to review the accuracy and characteristics of cephalometric software programs for outcome prediction of orthognathic surgeries. This study reviewed studies that compared cephalometric software programs in terms of accuracy and characteristics for outcome prediction of o...
متن کاملFaculty Development Programs at Shahid Beheshti University ; Insufficient Strengths
Abstract Introduction: Faculty development programs include all types of systematic support to improve faculty members as teachers, researchers, and citizens of universities, professions, and larger societies. Developing systematic and innovative faculty development programs is among the ways of improving the academic system. Due to the significance of such programs and their effective role in ...
متن کاملA Comparative Study on Structured Continuing Medical Education Programs with 25 and 5 Credit Points According to the Viewpoints of General Physicians in Golestan Province
Introduction: Since the year 2004, structured Continuing Medical Education (CME) programs with 25 credit points were each divided into five programs of 5 credit points which were shorter in duration. The aim of this study was to conduct a comparative study on the two programs, in terms of program success, relevance to professional needs, and participants’ satisfaction. Methods: This descripti...
متن کاملThe Viewpoints of General Physicians toward Continuing Medical Education Programs' Implementation Status and the Participants' Motivation
Introduction: Acquainting the viewpoints of Continuing Medical Education (CME) programs’ participants concerning different aspects of these programs is of special importance. The aim of this study was to determine the status of CME programs' implementation from general physicians’ viewpoints and their motivation for participating in these programs. Methods: In this descriptive cross-sectional ...
متن کامل